﻿using UnityEngine;
using System.Collections;

public class MotorPropeller : Motor {

	public ConstantForce outputConstantForce;
	public float minStrength = 0.0f;
	public float maxStrength = 10.0f;
	
	public float probeInputFloat = 0;
	public float probeForceMagnitude = 0;
	

	void FixedUpdate () {
		
		float f = inputValue / 65534.0f;
		float m = minStrength + f * (maxStrength - minStrength);
		probeInputFloat = f;
		probeForceMagnitude = m;
		
		outputConstantForce.relativeForce = new Vector3 (0, 0, m);
		
	}

}
